package com.itheima.reggie;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import java.util.ArrayList;

@SpringBootApplication
@ServletComponentScan
@EnableTransactionManagement //开启对事务管理的支持
@EnableCaching  //Cache注解方式缓存功能
public class ReggieWaimaiApplication {

    public static void main(String[] args) {
        SpringApplication.run(ReggieWaimaiApplication.class, args);
    }

}
